package com.bci.pwtz.mysql.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.Dyrsx;

public interface DyrsxMapper {
    int deleteByPrimaryKey(String deviceid);

    int insert(Dyrsx record);

    int insertSelective(Dyrsx record);

    Dyrsx selectByPrimaryKey(String deviceid);

    int updateByPrimaryKeySelective(Dyrsx record);

    int updateByPrimaryKey(Dyrsx record);
    
    int deleteById(@Param("deviceid")String deviceid,@Param("lastmodifiedtime")Date time);
    
    List<Dyrsx> selectDeviceList(@Param("name") String name,@Param("companyid") Long companyid,@Param("companyids")String[] companyids,@Param("portalType") int portalType,@Param("medLineCodes")String[] medLineCodes,@Param("towerCode")String towerCode,@Param("beginTime") String beginTime,@Param("endTime") String endTime,
            @Param("benginIndex") int benginIndex, @Param("pageSize") int pageSize);

    int selectDeviceCount(@Param("name") String name,@Param("companyid") Long companyid,@Param("companyids")String[] companyids,@Param("portalType") int portalType,@Param("medLineCodes")String[] medLineCodes,@Param("towerCode")String towerCode,@Param("beginTime") String beginTime,@Param("endTime") String endTime);
    
    List<Dyrsx> selectByDytg(@Param("towerCode") String towerCode,@Param("deviceName") String deviceName,@Param("companyId") Long companyId,@Param("benginIndex") int benginIndex, @Param("pageSize") int pageSize);
    
    int selectDeviceCountByDytg(@Param("towerCode") String towerCode,@Param("deviceName") String deviceName,@Param("companyId") Long companyId);
}